﻿using UnityEngine;
using System.Collections;

public class TextControl : MonoBehaviour {
	
	public bool quitButton = false;
	// Use this for initialization
	void Start () {
	
	}
	
	void OnMouseEnter()
	{
		renderer.material.color = Color.red;
	}
	
	void OnMouseExit()
	{
		renderer.material.color = Color.white;
	}
	
	void OnMouseUp()
	{
		if(quitButton)
		{
			Application.Quit();
		}
		
		else
		{
			Application.LoadLevel(1);	
		}
		
	}
}
